
#import <UIKit/UIKit.h>
#import "KrVideoPlayerControlView.h"
#import <MediaPlayer/MediaPlayer.h>
#import "HomeModel.h"

@interface KrVideoPlayerController : MPMoviePlayerController

@property (nonatomic, assign) BOOL isFullscreenMode;
@property (nonatomic, strong) KrVideoPlayerControlView *videoControl;

/** video.view 消失 */
@property (nonatomic, copy)void(^dimissCompleteBlock)(void);
/** 进入最小化状态 */
@property (nonatomic, copy)void(^willBackOrientationPortrait)(void);
/** 进入全屏状态 */
@property (nonatomic, copy)void(^willChangeToFullscreenMode)(void);

@property (nonatomic, copy)void(^playCompleteBlock)(void);

@property (nonatomic, assign) CGRect frame;


- (instancetype)initWithFrame:(CGRect)frame data:(NSArray *)dataArr index:(NSInteger)index;
- (void)showInWindow;//加到window上
- (void)dismiss;

- (void)backOrientationPortrait;//最小化
- (void)fullScreenButtonClick;//全屏   
- (void)shrinkScreenButtonClick;//返回最小屏幕
/**
 *  获取视频截图
 */
+ (UIImage*) thumbnailImageForVideo:(NSURL *)videoURL atTime:(NSTimeInterval)time;
@end
